package cn.wolfcode.mapper;

import cn.wolfcode.domain.Department;
import cn.wolfcode.domain.Employee;
import cn.wolfcode.qo.EmployeeQueryObject;
import cn.wolfcode.qo.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface EmployeeMapper {
    int deleteByPrimaryKey(Long id);

    int insert(@Param("employee") Employee employee);

    Employee selectByPrimaryKey(Long id);

    List<Employee> selectAll();

    void updateByPrimaryKey(@Param("employee") Employee employee);

    int queryCount(EmployeeQueryObject qo);

    List<Employee> queryAll(EmployeeQueryObject qo);

    void insertRelation(@Param("id") Long id, @Param("rid") Long rid);

    void deleteRelation(Long id);

    Employee checkedUsername(String username);

    Employee selectByUsernameAndPassword(@Param("username") String username, @Param("password") String password);


    List<Long> selectAllId();
}